/**
 * This Class will determine the customers credit rating based on his/her yearly
 * income, yearly expense, yearly savings
 * 
 * @author Ravi
 * 
 */
public class CustomerCreditRating {

	public static void main(String[] args) {

		Customer cust1 = new Customer();

		cust1.customerFirstName = "John";
		cust1.customerLastName = "Brito";
		cust1.customerAge = 38;
		cust1.customerOccupation = "System Architect";
		cust1.customerYearlyIncome = 96000;
		cust1.customerYearlyExpenses = 65000;
		cust1.hasDepth = false;

		System.out
				.println("-----------------***********************-----------------");
		System.out
				.println("                    Customer Details                     ");
		System.out
				.println("-----------------***********************-----------------");

		cust1.customerPersonalDetails();

		System.out.println();

		System.out
				.println("-----------------***********************-----------------");
		System.out
				.println("              Customer Yearly Savings Details             ");
		System.out
				.println("-----------------***********************-----------------");

		float yearlySaving = cust1.savingsCalculator();
		{
			System.out.println("Customer Yearly Savings Percentage = "
					+ yearlySaving + " %");
		}

		System.out.println();
		System.out
				.println("-----------------***********************-----------------");
		System.out
				.println("                 Customer Credit Score                   ");
		System.out
				.println("-----------------***********************-----------------");

		int creditScore = cust1.creditScoreFinder();
		{
			System.out.println("Customer Credit Score = " + creditScore);
		}
		System.out.println();
		System.out
				.println("-----------------***********************-----------------");
		System.out
				.println("                 Customer Credit Rating                  ");
		System.out
				.println("-----------------***********************-----------------");

		String finalCreditRating = cust1.creditRatingFinder();
		{
			System.out.println("Customer Final Credit Rating = "
					+ finalCreditRating);
		}
	}

}
